<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<link rel="stylesheet" href="/clienttest/ext/CodeMirror-2.2/codemirror.css">
<link type="text/css" rel="stylesheet" href="RestClientApp.css">
<title>Please wait</title>
<script type="text/javascript">
//
// First, set/change in localstorage 'applogin' item to current time.
// then close this window.
// In application handlers are hadle time change and do its actions.
//
try{
	if(location.hash == '#auth'){
		localStorage.setItem('applogin',new Date().getTime());
	}
} catch(e){}
// if(!!(chrome.tabs)){
// 	chrome.tabs.getCurrent(function(tab){
// 	    chrome.tabs.remove(tab.id);
// 	});
// //require additional permissions
// } else {
// 	window.close();
// }
window.close();
</script>
</head>
<body>
	<p>Now You can close this window.</p>
	<p>It can't close this tab by itself because it require "tabs" permission for chrome extensions and some of You have real problem with this :)</p>
</body>
</html>
